package com.ryskoo.catering.consumestatistics.domain;

import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 消费统计
 * @author BeHappy
 */
@Entity
@Table(name = "cater_consume_statistics")
public class ConsumeStatisticsPO extends BasicPO {

    private static final long serialVersionUID = -526467256561779617L;
    /**
     * 商户Uuid
     */
    @Column(name = "vendor_uuid", columnDefinition = "char", length = 32)
    private String vendorUuid;

    /**
     * 会员Uuid
     */
    @Column(name = "customer_uuid", columnDefinition = "char", length = 32)
    private String customerUuid;

    /**
     * 消费次数
     */
    @Column(name = "time", columnDefinition = "char", length = 11)
    private int time;

    /**
     * 消费金额
     */
    @Column(name = "money", columnDefinition = "decimal", length = 11, precision = 2)
    private double money;

    public String getVendorUuid() {
        return vendorUuid;
    }

    public void setVendorUuid(String vendorUuid) {
        this.vendorUuid = vendorUuid;
    }

    public String getCustomerUuid() {
        return customerUuid;
    }

    public void setCustomerUuid(String customerUuid) {
        this.customerUuid = customerUuid;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "ConsumeStatisticsPO{" +
                "vendorUuid='" + vendorUuid + '\'' +
                ", customerUuid='" + customerUuid + '\'' +
                ", time=" + time +
                ", money=" + money +
                '}';
    }
}
